package com.dlc.garbagerecyclebox.bean;

import java.util.Map;

/**
 * Created by guoshuifang on 2019/8/9.
 * TODO mqtt发送过来的数据
 */
public class MessageBean {
    public String topic;//login == 登录, updateAdert == 发布广告,orderOperation == 开门,updateapk == 更新apk ,set == 设备温度预警值，灯开关时间
    public String token;
    public String event;//给后台的： openback==开门回调
    //当topic == login时 有的数据
    public String phone;//手机号
    public int type;// 1用户,2回收员,3运维员
    public InfoBean info;//用户信息
    //当topic == updateAddert时有的数据
    // --- 暂无
    //当topic == orderOperation时
    public Map<String, Integer> reclaimer_num;//后台返回的
    public Map<String, Integer> reclaimer_status;//传给后台的(value =0为失败 value=1为成功)

    //当topic == set时
    public String temp_warm;//最大温度
    public String starttime;//开灯时间
    public String endtime;//关灯时间

    public int isyunwei;
    public String oid;

    public static class InfoBean {
        public UserInfo userinfo;
        //topic == updateapk == 更新apk时 ，才有下面的数据
        public String keyname;//":"apk",
        public int newversion;//":"7","
        public String downloadurl;//":"http://jiaanhsx.app.xiaozhuschool.com/uploads/20190719/f325a82d39fa82c67f925a280996379f.apk"
    }

}
